<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/taglibs.jsp" %>

<html>
<head>
    <title>${basePath}</title>
</head>
<body>
<%--表单里有地址action，传输方式post，参数username，password，--%>
<%--触发表单--%>
<form style="width: 300px;margin: 200px auto 0;" method="post" action="loginCheck">        <!--${basePath}/loginCheck-->
    账号：<input type="text" name="username" value="${user.username}"><!--value="${user.username}"-->
    <br>
    密码：<input type="password" name="password" value="${user.password}"><!--value="${user.password}"-->
    <br>
    <input type="submit" value="登录">
    <br>
    <span style="color: red;">${error}</span>
</form>
</body>
</html>